﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace N03_11HCA_HTTTHD.Models
{
    public class Kho_ThemTimMua
    {
        public static string Name_loaiTimMua = "loaiTimMua";
        public static string Name_tenViet = "tenViet";
        public static string Name_tenAnh = "tenAnh";
        public static string Name_moTa = "moTa";
        public static string Name_tieuChuan = "tieuChuan";
        public static string Name_chuyenGiao= "chuyenGiao";
        public static string Name_namSanXuat = "namSanXuat";
        public static string Name_thongTinKhac = "thongTinKhac";
        public static string Name_linhVuc = "linhVuc";
        public static string Name_tuKhoa = "tuKhoa";
        public static string Name_xuatXu = "xuatXu";  
 
        public Kho_ThemTimMua(List<Data_DAO_DTO_Lib.DTO.DTO> lTieuChuan, List<Data_DAO_DTO_Lib.DTO.DTO> listChuyenGiao, List<Data_DAO_DTO_Lib.DTO.DTO> listPhanLoai)
        {
            this.setListTieuChuanTuDTO(lTieuChuan);
            this.setListChuyenGiaoDTO(listChuyenGiao);
            setListPhanLoai(listPhanLoai);
        }
        void setListChuyenGiaoDTO(List<Data_DAO_DTO_Lib.DTO.DTO> l)
        {
            ListChuyenGiao = new List<Data_DAO_DTO_Lib.DTO.CHUYENGIAO_DTO>();

            for (int i = 0; i < l.Count; i++)
            {
                ListChuyenGiao.Add((Data_DAO_DTO_Lib.DTO.CHUYENGIAO_DTO)l[i]);
            }
        }
        private List<Data_DAO_DTO_Lib.DTO.CHUYENGIAO_DTO> listChuyenGiao;
        public List<Data_DAO_DTO_Lib.DTO.CHUYENGIAO_DTO> ListChuyenGiao
        {
            get
            {
                return listChuyenGiao;
            }
            set
            {
                listChuyenGiao = value;
            }
        }
       
        void setListTieuChuanTuDTO(List<Data_DAO_DTO_Lib.DTO.DTO> l)
        {
            ListTieuChuan = new List<Data_DAO_DTO_Lib.DTO.TIEUCHUANTHIETBI_DTO>();

            for (int i = 0; i < l.Count; i++)
            {
                ListTieuChuan.Add((Data_DAO_DTO_Lib.DTO.TIEUCHUANTHIETBI_DTO)l[i]);
            }
        }

        private List<Data_DAO_DTO_Lib.DTO.TIEUCHUANTHIETBI_DTO> listTieuChuan;
        public List<Data_DAO_DTO_Lib.DTO.TIEUCHUANTHIETBI_DTO> ListTieuChuan
        {
            get
            {
                return listTieuChuan;
            }
            set
            {
                listTieuChuan = value;
            }
        }
        void setListPhanLoai(List<Data_DAO_DTO_Lib.DTO.DTO> l)
        {
            ListPhanLoai = new List<Data_DAO_DTO_Lib.DTO.DANHMUC_DTO>();

            for (int i = 0; i < l.Count; i++)
            {
                ListPhanLoai.Add((Data_DAO_DTO_Lib.DTO.DANHMUC_DTO)l[i]);
            }
        }
        private List<Data_DAO_DTO_Lib.DTO.DANHMUC_DTO> listPhanLoai;
        public List<Data_DAO_DTO_Lib.DTO.DANHMUC_DTO> ListPhanLoai
        {
            get
            {
                return listPhanLoai;
            }
            set
            {
                listPhanLoai = value;
            }
        }

    }
}